package exception;

import enums.ResponseErrorCode;

// unchecked exception
public class ServerException extends RuntimeException {

    private ResponseErrorCode errorCode;

    public ServerException(ResponseErrorCode errorCode) {
        this.errorCode = errorCode;
    }

    public ResponseErrorCode getErrorCode() {
        return errorCode;
    }
}
